<template>
	<view style="display: flex;flex-direction: column;align-items: center; height: 100vh;"><rich-text :nodes="data"></rich-text></view>
</template>

<script>
export default {
	data() {
		return {
			id: '',
			data: '',
		};
	},
	onLoad() {
		this.id = this.$Route.query.id;
		console.log('this.id  :>> ', this.id);
		this.name(this.id);
	},

	methods: {
		async name(id) {
			let res;
			try {
				res = await this.$request.get('addons/shopro/index/artcldel', {
					data: {
						id: id,
					},
				});
				console.log('res  :>> ', res);
				this.data = res.data.data.content;
			} catch (e) {}
		},
	},
};
</script>

<style></style>
